negotiator.boaframework.offeringstrategy
Class IAMHaggler_Test_Offering

java.lang.Object
  extended by negotiator.boaframework.OfferingStrategy
      extended by negotiator.boaframework.offeringstrategy.IAMHaggler_Test_Offering

public class IAMHaggler_Test_Offering
extends OfferingStrategy


Field Summary
protected  RandomBidCreator bidCreator
           
 
Fields inherited from class negotiator.boaframework.OfferingStrategy
endNegotiation, helper, negotiationSession, nextBid, omStrategy, opponentModel
 
Constructor Summary
IAMHaggler_Test_Offering()
           
IAMHaggler_Test_Offering(NegotiationSession negoSession, OpponentModel model, OMStrategy oms)
           
 
Method Summary
 BidDetails determineNextBid()
          Determines the next bid the agent will offer to the opponent
 BidDetails determineOpeningBid()
          Determines the first bid to be offered by the agent
 int getAmountOfSamples()
           
 Jama.Matrix getMeans()
           
 Jama.Matrix getVariances()
           
 void init(NegotiationSession negotiationSession, OpponentModel opponentModel, OMStrategy omStrategy, java.util.HashMap<java.lang.String,java.lang.Double> parameters)
          Initializes the offering strategy.
 
Methods inherited from class negotiator.boaframework.OfferingStrategy
endSession, getHelper, getNextBid, isEndNegotiation, loadData, setNextBid, storeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bidCreator

protected RandomBidCreator bidCreator
Constructor Detail

IAMHaggler_Test_Offering

public IAMHaggler_Test_Offering()

IAMHaggler_Test_Offering

public IAMHaggler_Test_Offering(NegotiationSession negoSession,
                                OpponentModel model,
                                OMStrategy oms)
                         throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

init

public void init(NegotiationSession negotiationSession,
                 OpponentModel opponentModel,
                 OMStrategy omStrategy,
                 java.util.HashMap<java.lang.String,java.lang.Double> parameters)
          throws java.lang.Exception
Description copied from class: OfferingStrategy
Initializes the offering strategy. If parameters are used, this method should be overridden.

Overrides:
init in class OfferingStrategy
Parameters:
negotiationSession - state of the negotiation.
opponentModel - opponent model which may be used.
omStrategy - opponent model strategy which may be used.
parameters - optional parameters for the offering strategy.
Throws:
java.lang.Exception - if the offering strategy fails to initialize.

determineOpeningBid

public BidDetails determineOpeningBid()
Description copied from class: OfferingStrategy
Determines the first bid to be offered by the agent

Specified by:
determineOpeningBid in class OfferingStrategy
Returns:
the opening bid of the agent.

determineNextBid

public BidDetails determineNextBid()
Description copied from class: OfferingStrategy
Determines the next bid the agent will offer to the opponent

Specified by:
determineNextBid in class OfferingStrategy
Returns:
bid to offer to the opponent.

getMeans

public Jama.Matrix getMeans()

getVariances

public Jama.Matrix getVariances()

getAmountOfSamples

public int getAmountOfSamples()